package tudolist.gui;

import javax.swing.JPopupMenu;

import org.jdesktop.jdic.tray.SystemTray;
import org.jdesktop.jdic.tray.TrayIcon;

import tudolist.gui.action.ExitAction;
import tudolist.gui.action.HelpAction;

public class Main {
	
    private SystemTray tray = SystemTray.getDefaultSystemTray();
    private TrayIcon trayIcon;
    
    private JPopupMenu menu;

    public Main() {
    	menu  = new JPopupMenu();
    	menu.add(new ExitAction());
    	menu.addSeparator();
    	menu.add(new HelpAction());
    	
        trayIcon = new TrayIcon(Images.TRAY, "TuduList", menu);
        tray.addTrayIcon(trayIcon);
    }
    
	public static void main(String args[]) {
		new Main();
	}
}